import {Component, ViewChild, ViewContainerRef} from '@angular/core';
import {FieldWrapper} from '@ngx-formly/core';

@Component({
  selector: 'formly-wrapper-description',
  template: `
    <ng-template #fieldComponent></ng-template>
    <div>
      <small style="float: right">{{ to.description }}</small>
    </div>
  `,
})
export class FormlyWrapperDescription extends FieldWrapper {
  @ViewChild('fieldComponent', {read: ViewContainerRef, static: false}) fieldComponent: ViewContainerRef;
}
